package com.waya.web.browser;

import android.app.Dialog;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.StyleRes;
import android.view.Window;

import butterknife.ButterKnife;

/**
 * Created by JesseHev on 2018/1/18.
 * describe:
 */

public abstract class AbsDialog extends Dialog {

    protected String TAG = getClass().getSimpleName();

    public AbsDialog(@NonNull Context context) {
        this(context, 0);
    }

    public AbsDialog(@NonNull Context context, @StyleRes int themeResId) {
        super(context, themeResId);
        ButterKnife.bind(this);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(setLayoutId());
    }

    protected abstract int setLayoutId();

}
